<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://xmlns.jcp.org/jsf/core">

<link href="#{appBean.baseUrl}resources/css/upload.css" type="text/css" rel="stylesheet" />
    <h:body>

        <ui:composition template="./../template.xhtml">

            <ui:define name="content">
            <div class="conteiner">
                     <h:form enctype="multipart/form-data">
            <p:fileUpload fileUploadListener="#{fileUploadController.handleFileUpload}"
                mode="advanced"
                multiple="true"
                update="messages"
                label="Escolha um arquivo"
                sizeLimit="10485760"
                fileLimit="10"
                allowTypes="/(\.|\/)(gif|jpe?g|png)$/"
                invalidSizeMessage="O tamanho máximo do arquivo é de 10Mb!"
                invalidFileMessage="Apenas imagens são permitidas!"
                />
            <p:growl id="messages" showDetail="true" sticky="true"/>
        </h:form>
        </div>
			<br></br><br></br>
            </ui:define>
        </ui:composition>
    </h:body>
</html>
